class Dog:
    def work(self):
        print('指哪打哪...')


class ArmyDog(Dog):
    def work(self):
        print('追击敌人...')


class DrugDog(Dog):
    def work(self):
        print('追查毒品...')


class Person:
    @staticmethod
    def work_with_dog(dog: Dog):
        dog.work()


if __name__ == '__main__':
    armyDog = ArmyDog()
    drugDog = DrugDog()

    daqiu = Person()
    daqiu.work_with_dog(Dog())
    daqiu.work_with_dog(armyDog)
    daqiu.work_with_dog(drugDog)
